package com.example.server.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.server.web.domain.Teacher;
import com.example.server.web.domain.dto.TeacherParamDto;
import com.example.server.web.domain.vo.TeacherVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 作者
 * @since 2023-04-04
 */
public interface TeacherMapper extends BaseMapper<Teacher> {

    /**
     * 分页查询教师信息
     * @param i
     * @param limit
     * @param teacherParamDto
     * @return
     */
    List<TeacherVO> getPage(@Param("page") int i,@Param("size") Integer limit,@Param("teacherParamDto") TeacherParamDto teacherParamDto);

    /**
     * 查询总条数
     * @param teacherParamDto
     * @return
     */
    Long getPageTotal(@Param("teacherParamDto") TeacherParamDto teacherParamDto);
}
